package seo.dale.swagger.book.dao;

import java.util.List;

import seo.dale.swagger.book.status.OperationResult;

public interface DAO<T, U> {

    public OperationResult create(T object);

    public OperationResult<T> update(U id, T object);

    public OperationResult delete(U id);

    public T findOne(U id);

    public List<T> findAll();

}
